﻿using EMoney.IStock.Client.Models.Stat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.DataAccess.Stat
{
    /// <summary>
    /// 用户登录基础信息数据访问类
    /// </summary>
    public class UserExtendInfoDal
    {
        /// <summary>
        /// 新增用户登录基础信息
        /// </summary>
        /// <param name="userExtendInfo"></param>
        public void AddUserExtendInfo(UserExtendInfo userExtendInfo)
        {
            SQLTools tools = new SQLTools();

            tools.AddSqlParameter("userid", System.Data.SqlDbType.Int, userExtendInfo.userid);
            tools.AddSqlParameter("gid", System.Data.SqlDbType.VarChar, 50, userExtendInfo.gid);
            tools.AddSqlParameter("updatetime", System.Data.SqlDbType.DateTime, userExtendInfo.updatetime);

            SQLHelper.ExecuteNonQuery(ConnectionManager.Emfstock, System.Data.CommandType.StoredProcedure, "add_userextendinfo", tools.GetSqlParameters());
        }
    }
}
